package com.example.yixueban.service_interface;

import com.example.yixueban.domain.Admin;
import com.example.yixueban.domain.AdminExample;
import com.example.yixueban.domain.User;

import java.util.List;

/**
 * User: Wang YiHan
 * Date: 2021/8/4 15:04
 * Email: 783096044@qq.com
 * File_Name: AdminService
 **/
public interface AdminService {


    int deleteByPrimaryKey(Integer adminId);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer adminId);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    List<User> getAllUsers();

    List<User> getUsersByName(String name);

    long countByExample(AdminExample example);

    int deleteByExample(AdminExample example);

    List<Admin> selectByExample(AdminExample example);

    int updateByExampleSelective(Admin record, AdminExample example);

    int updateByExample(Admin record, AdminExample example);
}


